<?php 

$con= mysql_connect("localhost","root","");
if(!$con){
die('Connection Error!:' . mysql_error());
}
mysql_select_db ("usabilityevaluation",$con);

$id  = $_GET["Delete"] ;

$query1="DELETE FROM Participant where id_participant='$id'";

$result = mysql_query($query1) or die('Error, delete query failed');

if ($result) 
{
    echo "<script>alert('suppression succees!');</script>";
}

header("Location: ListeParticipants.php"); 
mysql_close($con);

?>